package com.pn.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Pet {
    private Integer pid;

    private String pname;

    private Integer ptid;

    private Integer psex;

    private Float price;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date pbirth;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date ptime;

    private String imga;

    private String imgb;

    private String imgc;

    private Integer uid;

    private Integer pstatus;

    private String desp;

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname == null ? null : pname.trim();
    }

    public Integer getPtid() {
        return ptid;
    }

    public void setPtid(Integer ptid) {
        this.ptid = ptid;
    }

    public Integer getPsex() {
        return psex;
    }

    public void setPsex(Integer psex) {
        this.psex = psex;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Date getPbirth() {
        return pbirth;
    }

    public void setPbirth(Date pbirth) {
        this.pbirth = pbirth;
    }

    public Date getPtime() {
        return ptime;
    }

    public void setPtime(Date ptime) {
        this.ptime = ptime;
    }

    public String getImga() {
        return imga;
    }

    public void setImga(String imga) {
        this.imga = imga == null ? null : imga.trim();
    }

    public String getImgb() {
        return imgb;
    }

    public void setImgb(String imgb) {
        this.imgb = imgb == null ? null : imgb.trim();
    }

    public String getImgc() {
        return imgc;
    }

    public void setImgc(String imgc) {
        this.imgc = imgc == null ? null : imgc.trim();
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getPstatus() {
        return pstatus;
    }

    public void setPstatus(Integer pstatus) {
        this.pstatus = pstatus;
    }

    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp == null ? null : desp.trim();
    }

    @Override
    public String toString() {
        return "Pet{" +
                       "pid=" + pid +
                       ", pname='" + pname + '\'' +
                       ", ptid=" + ptid +
                       ", psex=" + psex +
                       ", price=" + price +
                       ", pbirth=" + pbirth +
                       ", ptime=" + ptime +
                       ", imga='" + imga + '\'' +
                       ", imgb='" + imgb + '\'' +
                       ", imgc='" + imgc + '\'' +
                       ", uid=" + uid +
                       ", pstatus=" + pstatus +
                       ", desp='" + desp + '\'' +
                       '}';
    }
}